<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">

    <title>贵州猿创科技 - 后台管理系统</title>
    <meta name="keywords" content="H+后台主题,后台bootstrap框架,会员中心主题,后台HTML,响应式后台">
    <meta name="description" content="H+是一个完全响应式，基于Bootstrap3最新版本开发的扁平化主题，她采用了主流的左右两栏式布局，使用了Html5+CSS3等现代技术">
    <link href="__STATIC__/layui/css/layui.css" rel="stylesheet">
    <link href="__STATIC__/css/bootstrap.min.css" rel="stylesheet">
    <link href="__STATIC__/css/font-awesome.css?v=4.4.0" rel="stylesheet">
    <link href="__STATIC__/css/animate.css" rel="stylesheet">
    <link href="__STATIC__/css/style.css" rel="stylesheet">
    <link href="__STATIC__/css/login.css" rel="stylesheet">
    <!--[if lt IE 9]>
    <meta http-equiv="refresh" content="0;ie.html"/>
    <![endif]-->
    <script>
        if (window.top !== window.self) {
            window.top.location = window.location;
        }
    </script>

</head>

<body class="signin">
<div class="signinpanel">
    <div class="row">
        <div class="col-sm-7">
            <div class="signin-info">
                <div class="logopanel m-b">
                    <h1>[ 贵州猿创科技 ]</h1>
                </div>
                <div class="m-b"></div>
                <h4>欢迎使用 <strong>贵州猿创科技 - 后台管理系统</strong></h4>
                <ul class="m-b">
                    <li><i class="fa fa-arrow-circle-o-right m-r-xs"></i> 十年开发经验</li>
                    <li><i class="fa fa-arrow-circle-o-right m-r-xs"></i> 服务全国30+城市</li>
                    <li><i class="fa fa-arrow-circle-o-right m-r-xs"></i> 1000+案例库</li>
                    <li><i class="fa fa-arrow-circle-o-right m-r-xs"></i> 明确用户需求</li>
                    <li><i class="fa fa-arrow-circle-o-right m-r-xs"></i> 快速开发上线</li>
                </ul>
                <strong>还在犹豫什么？ <a href="#">立即联系&raquo;</a></strong>
            </div>
        </div>
        <div class="col-sm-5">
            <form method="post" action="index.html" class="layui-form" action="">
                <h4 class="no-margins">登录：</h4>
                <p class="m-t-md">专业软件开发、小程序、微商城开发</p>
                <input type="text" name="username" class="form-control uname" placeholder="用户名"/>
                <input type="password" name="password" class="form-control pword m-b" placeholder="密码"/>
                <a href="">忘记密码了？</a>
                <button class="btn btn-success btn-block" lay-submit lay-filter="formDemo">登录</button>
            </form>
        </div>
    </div>
    <div class="signup-footer">
        <div class="pull-left">
            &copy; 2020 All Rights Reserved. H+
        </div>
    </div>
</div>
<script type="text/javascript" src="__STATIC__/layui/layui.js"></script>
<script type="text/javascript">
    layui.use(['form','jquery'], function(){
        var form = layui.form;
        var $ = layui.jquery;
        //监听提交
        form.on('submit(formDemo)', function(data){
            $.post("{:url('User/login')}",data.field,res=>{
                layer.msg(res.msg)
                if (res.code == 200){
                    setTimeout(()=>{
                        window.location.href = "{:url('Index/index')}"
                    },1500)
                }
            })
            return false;
        });
    });
</script>
</body>

</html>